<?php /**
 * The template for content page
 *
 * @subpackage xique
 * @since xique 1.2
 */ ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'xique-posts' ); ?>>
	<header>
		<h2 class="wrap capitalize"><a class="xique-content-headertitle" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h2>
	</header>
	
	<?php if ( ! is_page() ) : ?>
		<p class="postmetadata">
		
			<?php _e( 'from', 'xique' ); ?> 
			<?php the_author_posts_link(); ?>
			<!--<?php _e( 'on', 'xique' ); ?>
			<a href="<?php the_permalink(); ?>" title="<?php echo get_the_date( 'j F, Y' ); ?>"><?php echo get_the_date( 'j F, Y' ); ?></a>
			<?php if ( has_category() ) : 
				printf( __( 'in', 'xique' ) . '&nbsp;' );
				the_category( ', ' );
			endif; ?>-->
		</p>
	<?php endif; ?>
	<?php
					$tmp = get_option('b_option');
					$arr = explode('%', $tmp);
					$b_option = $arr[0];
					$b_option=htmlspecialchars_decode($b_option);?>
		
				<span class="xique-content-share" >分享:<?php echo $b_option;?></span>
	<div class="xique-excerpt-entry clearfix">
	 <img class="content-tag-img" src="/images/contenttag.png"></img>
		<ul>
		   <li class="portfolio-thumb">
		   <div id="excerpt-thumbnail">
			  <?php if ( has_post_thumbnail() ) : /*check for thumbnail existing*/ ?>
			  <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
			  
			  <?php { the_post_thumbnail(get_the_ID(), 'small');  } 
			  
					else :?>
					
					 <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
					<img class="xique-content-imgs" style="width:200px;height:200px;" src="<?php echo site_url();?>/wp-content/themes/xique/images/thumbnail.png"/>
					</a>
					
			  </a><?php endif;?>
			  </div>
		   </li>
		   <li class="xique-caption">
		     
				  <?php the_excerpt(); ?>
				  <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'xique' ), 'after' => '</div>' ) );?>
		   </li>
		   </ul>
		  
		   		<?php if ( ! is_page() ) : ?>
			<div class="xique-tags-box">
				
				<?php if( get_the_tag_list() ) {
					echo get_the_tag_list( '','',  '<img class="content-tag-img" src="/images/contenttag.png"></img>' );
				} ?>
				
				
			</div>	
			
			<?php edit_post_link( __( 'Edit', 'xique' ), '<p>', '</p>' ); // "Edit" post when login
		endif; ?>
		</div>
		<div class="clear">
		</div>
</article>